﻿@page "/login"
@layout LoginLayout
@inherits PageBase

<div class="main__b__0">
    <div class="login">
        <Form Model="@model" OnFinish="HandleSubmit">
            <Tabs DefaultActiveKey="account" OnChange="OnChange">
                <TabPane Key="account">
                    <ChildContent>
                        <FormItem>
                            <AntDesign.Input Placeholder="Enter the username" Size="large" @bind-Value="@context.Username">
                                <Prefix><Icon Type="user" /></Prefix>
                            </AntDesign.Input>
                        </FormItem>
                        <FormItem>
                            <AntDesign.Input Placeholder="Enter the password" Size="large" @bind-Value="@context.Password" Type="password">
                                <Prefix><Icon Type="lock" /></Prefix>
                            </AntDesign.Input>
                        </FormItem>
                    </ChildContent>
                </TabPane>
            </Tabs>
            <Button Type="@ButtonType.Primary" HtmlType="submit" Class="submit" Size="large" Block>登&nbsp;录</Button>
        </Form>
    </div>
</div>
